import request from '@/utils/request'

// 查询共享设备管理列表
export function listSharedManagement(query) {
  return request({
    url: '/supply/sharedManagement/list',
    method: 'get',
    params: query
  })
}

// 查询共享设备管理详细
export function getSharedManagement(id) {
  return request({
    url: '/supply/sharedManagement/' + id,
    method: 'get'
  })
}

// 新增共享设备管理
export function addSharedManagement(data) {
  return request({
    url: '/supply/sharedManagement',
    method: 'post',
    data: data
  })
}

// 修改共享设备管理
export function updateSharedManagement(data) {
  return request({
    url: '/supply/sharedManagement',
    method: 'put',
    data: data
  })
}

// 删除共享设备管理
export function delSharedManagement(id) {
  return request({
    url: '/supply/sharedManagement/' + id,
    method: 'delete'
  })
}
